<alert class="alert-msg" ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}
</alert>

<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">宝贝搜索</h3>
    </div>
    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group">
                <label>宝贝名称：</label>
                <input type="text" class="form-control" ng-model="title">
            </div>
            <div class="form-group">
                <label>宝贝品牌：</label>
                <input type="text" class="form-control" ng-model="brandName">
            </div>

            <div class="form-group">
                <label>宝贝创建者：</label>
                <input type="text" class="form-control" ng-model="userId">
            </div>

            <div class="form-group">
                <label>状态：</label>
                <select ng-model="state" value="-1" class="form-control">
                    <option value="-1" selected="selected">全部</option>
                    <option value="1">在用</option>
                    <option value="0">停用</option>
                </select>
            </div>
            <button type="submit" class="btn btn-primary" ng-click="queryList()">查询</button>
        </form>
    </div>
</div>

<div class="row">
    <span style="margin-top: 20px" class="col-sm-2">获取<strong>{{totalItems}}</strong>条数据：</span>

    <div class="col-sm-10">
        <pagination total-items="totalItems"
                    ng-model="currentPage"
                    items-per-page="pageSize"
                    max-size="3" class="pagination-sm"
                    boundary-links="true" rotate="false"
                    previous-text="上一页"
                    next-text="下一页"
                    last-text="最后一页"
                    first-text="第一页"
                    ng-change="queryList()">

        </pagination>
    </div>
</div>


<div style="height:400px !important;" ui-grid="gridOptions" ui-grid-auto-resize ui-grid-resize-columns class="grid">
    <!--这里显示页面信息 -->
</div>

<script type="text/ng-template" id="syncSceneContent.html">
    <div class="modal-header">
        <h3 class="modal-title">更新场景内容</h3>
    </div>
    <div class="modal-body">
        <input type="text" class="form-control" id="sceneSrc" placeholder="场景内容源,默认不要填写哦">
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="ok()">操作</button>
        <button class="btn btn-cancel" ng-click="cancel()">取消操作</button>
    </div>
</script>